using System;
using System.Collections.Generic;

namespace Microsoft.SqlServer.Management.SqlManagerUI
{
	public class ProvidersComparer : IComparer<ProviderEntity>
	{
		public int Compare(ProviderEntity x, ProviderEntity y)
		{
			if (x == null)
			{
				return 0;
			}
			if (y == null)
			{
				return 0;
			}
			int num = x.Name.Length.CompareTo(y.Name.Length);
			if (num == 0)
			{
				num = x.Name.CompareTo(y.Name);
			}
			return num;
		}
	}
}
